package com.atguigu.eduservice.client;


import com.atguigu.eduservice.client.impl.OrderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-order",fallback = OrderClientImpl.class)
@Component
public interface OrderClient {
    //3、根据 用户id 和 课程id 查询表中 订单状态
    @GetMapping("/orderservice/order/isBuyCourse/{courseId}/{memberid}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberid") String memberid);
}
